﻿<phone:PhoneApplicationPage 
    x:Class="TestingWP7.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Microsoft_Phone_Controls_Maps="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps" 
    xmlns:MSPCMCore="clr-namespace:Microsoft.Phone.Controls.Maps.Core;assembly=Microsoft.Phone.Controls.Maps"
    xmlns:GoogleTileSource="clr-namespace:TestingWP7"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">
  

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBox Height="72" Name="txtAddress" Text="4237 Salisbury Rd, Suite 114 Jacksonville FL, 32216" />
            <Button Content="Show on map" Height="72" Name="btnPlot" Click="btnPlot_Click" />
            <HyperlinkButton Content="Clound Test" Height="72" Name="cloundTest" NavigateUri="/CloundService.xaml"/>
            <HyperlinkButton Content="ListBox Test" Height="72" Name="lbTest" NavigateUri="/ListBoxTesting.xaml"/>
            <HyperlinkButton Content="SharePage Test" Height="72" Name="spTest" NavigateUri="/SocialNetworkPage.xaml"/>
        </StackPanel>
        
        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Microsoft_Phone_Controls_Maps:Map Name="googlemap" CopyrightVisibility="Collapsed" LogoVisibility="Collapsed" ScaleVisibility="Collapsed" CredentialsProvider="ApBXPZf5IR94SLXE8nh5FYsb5WHKrH1XPY7428-EqQudseivcWhCROIJvGmtnkAV">
                <!--<Microsoft_Phone_Controls_Maps:Map.Mode>
                    <MSPCMCore:MercatorMode/>
                </Microsoft_Phone_Controls_Maps:Map.Mode>-->
                <!--<Microsoft_Phone_Controls_Maps:MapTileLayer Visibility="Collapsed" Name="wateroverlay" Margin="0,0,0,32">
                    <Microsoft_Phone_Controls_Maps:MapTileLayer.TileSources>
                        <GoogleTileSource:GoogleTile TileTypes="WaterOverlay"/>
                    </Microsoft_Phone_Controls_Maps:MapTileLayer.TileSources>
                </Microsoft_Phone_Controls_Maps:MapTileLayer>
                <Microsoft_Phone_Controls_Maps:MapTileLayer Visibility="Collapsed" Name="hybrid" Margin="0,0,0,32">
                    <Microsoft_Phone_Controls_Maps:MapTileLayer.TileSources>
                        <GoogleTileSource:GoogleTile TileTypes="Hybrid"/>
                    </Microsoft_Phone_Controls_Maps:MapTileLayer.TileSources>
                </Microsoft_Phone_Controls_Maps:MapTileLayer>
                <Microsoft_Phone_Controls_Maps:MapTileLayer Visibility="Collapsed" Name="satellite" Margin="0,0,0,32">
                    <Microsoft_Phone_Controls_Maps:MapTileLayer.TileSources>
                        <GoogleTileSource:GoogleTile TileTypes="Satellite"/>
                    </Microsoft_Phone_Controls_Maps:MapTileLayer.TileSources>
                </Microsoft_Phone_Controls_Maps:MapTileLayer>
                <Microsoft_Phone_Controls_Maps:MapTileLayer Visibility="Collapsed" Name="physical" Margin="0,0,0,32">
                    <Microsoft_Phone_Controls_Maps:MapTileLayer.TileSources>
                        <GoogleTileSource:GoogleTile TileTypes="Physical"/>
                    </Microsoft_Phone_Controls_Maps:MapTileLayer.TileSources>
                </Microsoft_Phone_Controls_Maps:MapTileLayer>-->
               
                <Microsoft_Phone_Controls_Maps:MapTileLayer Name="street" Margin="0,0,0,32">
                    <Microsoft_Phone_Controls_Maps:MapTileLayer.TileSources>
                    <GoogleTileSource:GoogleTile TileTypes="Street"/>
                    </Microsoft_Phone_Controls_Maps:MapTileLayer.TileSources>
                </Microsoft_Phone_Controls_Maps:MapTileLayer>

                <Microsoft_Phone_Controls_Maps:Pushpin Name="bingMapLocator" 
                                 Background="Transparent">
                    <Microsoft_Phone_Controls_Maps:Pushpin.Content>
                        <Ellipse Fill="Red" Width="20" Height="20" 
                            Name="locator" />
                    </Microsoft_Phone_Controls_Maps:Pushpin.Content>
                </Microsoft_Phone_Controls_Maps:Pushpin>
            </Microsoft_Phone_Controls_Maps:Map>
            <StackPanel Margin="6,0,0,0" Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Left" Width="56">
                <Button x:Name="ButtonZoomIn"
                		Style="{StaticResource ButtonZoomInStyle}"
                		RenderTransformOrigin="0.429,-0.679" Click="ButtonZoomIn_Click" Height="82" />
                <Button x:Name="ButtonZoomOut"
                		Style="{StaticResource ButtonZoomOutStyle}"
                		VerticalAlignment="Top"
                		Height="56" Click="ButtonZoomOut_Click" />
            </StackPanel>
        </Grid>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/icons/appbar.feature.search.rest.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>